import {createApp} from 'vue'
import App from './App.vue'
// element-plus 暗黑主题
import 'element-plus/theme-chalk/dark/css-vars.css'
// 重写暗黑主题的样式
import '@/styles/dark/css-vars.css'
import {Edit, Sell, Search, ArrowDown, ArrowRight} from "@element-plus/icons-vue"
import router from '@/router/index'
import store from "@/js/store";
import {unFocus} from "@/js/utils";

const app = createApp(App)
// 动态绑定图标，key: 组件。必须在mount之前。
app.component("Edit", Edit)
app.component("Sell", Sell)
app.component("Search", Search)
app.component("ArrowDown", ArrowDown)
app.component("ArrowRight", ArrowRight)
app.component("IEpMoon", IEpMoon)
app.component("IEpSunny", IEpSunny)

app.use(router)

app.config.globalProperties.$store = store
app.config.globalProperties.$unFocus = unFocus

app.mount('#app')
